package com.dxiang.demo.service;

import com.dxiang.demo.mapper.TagsMapper;
import com.dxiang.demo.model.Tags;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TagService {

    private final Logger log = LoggerFactory.getLogger(GameInfoService.class);

    @Autowired
    private TagsMapper tagsMapper;

    /**
     * 获取所有的标签
     * @return
     */
    public List<Tags> getTags(){
        return tagsMapper.getTags();
    }


    /**
     * 获取热门标签
     * @return
     */
    public List<Tags> getHotTags() {
        return tagsMapper.getHotTags();
    }
    /**
     * 获取标签分类
     * @return
     */
    public List<Tags> getTagsClassification(){
        return tagsMapper.getTagsClassification();
    }


}
